package tk.mynoteapp.dev.other.eliminateifelse.right.responsibility;

import org.springframework.stereotype.Service;

@Service
public class JingDongPayHandler extends PayHandler {
    @Override
    public void pay(String payCode) {
        if ("jingdong".equals(payCode)) {
            System.out.println("===发起京东支付");
        } else {
            getNext().pay(payCode);
        }
    }
}
